Skip to content

[3.13] gh-145801: Use gcc -fprofile-update=atomic for PGO builds (#145802)#145893

Merged
vstinner merged 1 commit intopython:3.13from
vstinner:pgo_atomic13
Mar 12, 2026
Merged

[3.13] gh-145801: Use gcc -fprofile-update=atomic for PGO builds (#145802)#145893
vstinner merged 1 commit intopython:3.13from
vstinner:pgo_atomic13

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Mar 12, 2026

When Python build is optimized with GCC using PGO, use -fprofile-update=atomic option to use atomic operations when updating profile information. This option reduces the risk of gcov Data Files (.gcda) corruption which can cause random GCC crashes.

(cherry picked from commit 08a018e)

…on#145802)

When Python build is optimized with GCC using PGO, use
-fprofile-update=atomic option to use atomic operations when updating
profile information. This option reduces the risk of gcov Data Files
(.gcda) corruption which can cause random GCC crashes.

(cherry picked from commit 08a018e)
@vstinner vstinner enabled auto-merge (squash) March 12, 2026 22:55
@vstinner vstinner merged commit b012f68 into python:3.13 Mar 12, 2026
42 checks passed
@vstinner vstinner deleted the pgo_atomic13 branch March 12, 2026 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant